#include <stdio.h>

int main() {
    float x;
    float result;
    scanf("%f", &x);
    if (x != 0) {
        result = 1 / x;
    } else {
        result = 0;
    }
    printf("f(%.f)=%.1f", x, result);
    return 0;
}